// 登录API
import http from '../utils/http.js';
/**
 * 微信登录
 * @param {code} data 
 * @returns 
 */ 
export const loginWeiXin = (data)=>{
    return http.post('/pub/login/wx',data)
}

/**
 * 发送短信验证码
 * @param {mobile,id,captchaTrack} data
 * @returns
*/
export const sendSMS = (data)=>{
    return http.post('/pub/login/sendSMS',data)
}

/**
 * 获取滑块验证
 * @param {mobile} data
*/
export const GetSlider = (data)=>{
    return http.get('/pub/login/getSlider',data)
}